﻿using System;
using System.Collections.Generic;

namespace Models.Models;

/// <summary>
/// 用户
/// </summary>
public partial class SUser
{
    /// <summary>
    /// 自增id
    /// </summary>
    public uint Id { get; set; }

    /// <summary>
    /// 支付宝openid
    /// </summary>
    public string AlipayOpenid { get; set; } = null!;

    /// <summary>
    /// 微信openid
    /// </summary>
    public string WeixinOpenid { get; set; } = null!;

    /// <summary>
    /// 百度openid
    /// </summary>
    public string BaiduOpenid { get; set; } = null!;

    /// <summary>
    /// 状态（0正常, 1禁止发言, 2禁止登录, 3待审核）
    /// </summary>
    public byte Status { get; set; }

    /// <summary>
    /// 配合密码加密串
    /// </summary>
    public string Salt { get; set; } = null!;

    /// <summary>
    /// 登录密码
    /// </summary>
    public string Pwd { get; set; } = null!;

    /// <summary>
    /// 用户名
    /// </summary>
    public string Username { get; set; } = null!;

    /// <summary>
    /// 用户昵称
    /// </summary>
    public string Nickname { get; set; } = null!;

    /// <summary>
    /// 手机号码
    /// </summary>
    public string Mobile { get; set; } = null!;

    /// <summary>
    /// 电子邮箱（最大长度60个字符）
    /// </summary>
    public string Email { get; set; } = null!;

    /// <summary>
    /// 性别（0保密，1女，2男）
    /// </summary>
    public byte Gender { get; set; }

    /// <summary>
    /// 用户头像地址
    /// </summary>
    public string Avatar { get; set; } = null!;

    /// <summary>
    /// 所在省
    /// </summary>
    public string Province { get; set; } = null!;

    /// <summary>
    /// 所在市
    /// </summary>
    public string City { get; set; } = null!;

    /// <summary>
    /// 生日
    /// </summary>
    public int Birthday { get; set; }

    /// <summary>
    /// 详细地址
    /// </summary>
    public string Address { get; set; } = null!;

    /// <summary>
    /// 积分
    /// </summary>
    public uint Integral { get; set; }

    /// <summary>
    /// 推荐人用户id
    /// </summary>
    public uint Referrer { get; set; }

    /// <summary>
    /// 推荐赠送积分次数（0未赠送, 大于0则是赠送次数）
    /// </summary>
    public uint ReferrerGivingIntegralCount { get; set; }

    /// <summary>
    /// token
    /// </summary>
    public string? Token { get; set; }

    /// <summary>
    /// token过期时间
    /// </summary>
    public int? TokenExpireTime { get; set; }

    /// <summary>
    /// 是否已删除（0否, 大于0删除时间）
    /// </summary>
    public uint IsDeleteTime { get; set; }

    /// <summary>
    /// 添加时间
    /// </summary>
    public uint AddTime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public uint UpdTime { get; set; }
}
